/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package generics.simpleExample;

/**
 *
 * @author Bryce.Alcock
 */
public class Wrapped<Elem extends Copyable<Elem>> {
    private Elem theObj;
    public Wrapped(Elem arg){ theObj=arg.copy();}
    public void setObject(Elem arg) { theObj = arg.copy();}
    public Elem getObject() {return theObj.copy();}

    
    public boolean equals(Object other){
        if(other==null){
            return false;
        }
        if(!(other instanceof Wrapped)) {return false;}
        return theObj.equals(((Wrapped)other).theObj);

    }


}
